// / -> component
import { createRouter, createWebHashHistory } from 'vue-router'
// 路由对象
// 锚点
const router = createRouter ({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            name: 'home',
            // 页面级别组件 views 
            component: () => import('../views/home.vue')
        },
        {
            path: '/about',
            name: 'about',
            // 页面级别组件 views 
            component: () => import('../views/about.vue')
        }
    ]
})

export default router